package
{
	import de.nulldesign.nd2d.display.Sprite2D;
	import de.nulldesign.nd2d.materials.texture.Texture2D;
	
	import flash.display.BitmapData;
	import flash.display.DisplayObject;
	import flash.display.IBitmapDrawable;

	public class ND2DSprite extends Sprite2D implements ISprite
	{
		private var m_x:Number;
		private var m_y:Number;
		
		public function ND2DSprite(src:DisplayObject)
		{
			var bmd:BitmapData = new BitmapData(src.width, src.height*2,true,0xffffff);
			bmd.draw(src);
			var texture2d:Texture2D = Texture2D.textureFromBitmapData(bmd);
			super(texture2d);
		}
		
	}
}